/*
 * Copyright (C) 2010 droidoku / Olaf Geibig
 *
 */
package org.mixare;

import org.mixare.opengl.CubeRenderer;

import android.content.Context;
import android.graphics.PixelFormat;
import android.opengl.GLSurfaceView;

/**
 * @author Olaf Geibig
 *
 */
public class AugmentedOpenGLView extends GLSurfaceView {

	public AugmentedOpenGLView(Context context) {
		super(context);
        // We want an 8888 pixel format because that's required for
        // a translucent window.
        // And we want a depth buffer.
        setEGLConfigChooser(8, 8, 8, 8, 16, 0);
        // Tell the cube renderer that we want to render a translucent version
        // of the cube:
         // Use a surface format with an Alpha channel:
        getHolder().setFormat(PixelFormat.TRANSLUCENT);
        setRenderer(new CubeRenderer(true));
	}

}
